import request from '@/utils/request'

export default {
  // 创建订单
  createOrder(courseId) {
    return request({
      url: `/api/orders/createOrder/${courseId}`,
      method: `post`
    })
  },

  getOrderInfo(orderId) {
    return request({
      url: `/api/orders/getOrderInfo/${orderId}`,
      method: `get`
    })
  }
}
